/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-13 17:40:15
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-13 17:40:15
 */
public class Main {
    public static void main(String[] args) {
        // 创建多个实例
        CounterClass obj1 = new CounterClass();
        CounterClass obj2 = new CounterClass();
        CounterClass obj3 = new CounterClass();

        // 获取并打印实例化的次数
        System.out.println("Total instances created: " + CounterClass.getInstanceCount());
    }
}
